#include "wx_pch.h"
#include "TextInputDialog.h"

#ifndef WX_PRECOMP
	//(*InternalHeadersPCH(TextInputDialog)
	#include <wx/intl.h>
	#include <wx/string.h>
	//*)
#endif
//(*InternalHeaders(TextInputDialog)
//*)

//(*IdInit(TextInputDialog)
const long TextInputDialog::ID_TEXTCTRL = wxNewId();
const long TextInputDialog::ID_BUTTON = wxNewId();
//*)

BEGIN_EVENT_TABLE(TextInputDialog,wxDialog)
	//(*EventTable(TextInputDialog)
	//*)
END_EVENT_TABLE()

TextInputDialog::TextInputDialog(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(TextInputDialog)
	wxFlexGridSizer* FlexGridSizer1;

	Create(parent, id, _("Rename Tag"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
	SetClientSize(wxDefaultSize);
	Move(wxDefaultPosition);
	FlexGridSizer1 = new wxFlexGridSizer(0, 3, 0, 0);
	TextCtrl = new wxTextCtrl(this, ID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxSize(300,21), 0, wxDefaultValidator, _T("ID_TEXTCTRL"));
	FlexGridSizer1->Add(TextCtrl, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	Button = new wxButton(this, ID_BUTTON, _("Okay"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON"));
	FlexGridSizer1->Add(Button, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	SetSizer(FlexGridSizer1);
	FlexGridSizer1->Fit(this);
	FlexGridSizer1->SetSizeHints(this);

	Connect(ID_BUTTON,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&TextInputDialog::OnButtonClick);
	//*)
}

TextInputDialog::~TextInputDialog()
{
	//(*Destroy(TextInputDialog)
	//*)
}


void TextInputDialog::OnButtonClick(wxCommandEvent& event)
{
    Close();
}
